Skip to content

Fix AsyncTransport verify_ssl and proxy#1149

Merged
mvantellingen merged 1 commit into
mvantellingen:masterfrom
adammillerio:master
Oct 11, 2020
Merged

Fix AsyncTransport verify_ssl and proxy#1149
mvantellingen merged 1 commit into
mvantellingen:masterfrom
adammillerio:master

Conversation

@adammillerio

@adammillerio adammillerio commented Oct 10, 2020

Copy link
Copy Markdown
Contributor

The conversion to using httpx for AsyncTransport brought with it a few bugs that make it unusable:

  • Any proxy or verify_ssl setting provided was not passed to the wsdl_client, meaning that it was more or less impossible to get a useable client if verification needs to be disabled.
  • Incorrect keyword arguments were used for verify_ssl (should be verify) and proxy (should be proxies).

This fixes these by passing any verify_ssl or proxy settings into the client constructors, so that they persist across all interactions. In addition, timeout settings were also moved into the client.

@mvantellingen mvantellingen merged commit fe3cef3 into mvantellingen:master Oct 11, 2020
@mvantellingen

Copy link
Copy Markdown
Owner

Good point! Thanks! Everything else working correctly?

@adammillerio

adammillerio commented Oct 11, 2020

Copy link
Copy Markdown
Contributor Author

@mvantellingen Yup! So far so good with async zeep after fixing this up. I'll keep you posted if I hit anything strange along the way.

Is there any chance you could possibly cut a new prerelease build in PyPI? Right now I am just building the wheel off of my fork for testing, but being able to hit PyPI directly again would be great.

@mvantellingen

Copy link
Copy Markdown
Owner

Good to hear, I've just released 4.0.0. Hoping that this (partial) async implementation is easier to maintain :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants